package cn.tedu.tourism.city.service.impl;

import cn.tedu.tourism.city.pojo.dto.CityQuery;
import cn.tedu.tourism.city.pojo.vo.CityVO;
import cn.tedu.tourism.city.service.CityService;
import cn.tedu.tourism.city.mapper.CityMapper;
import cn.tedu.tourism.province.pojo.dto.ProvinceQuery;
import cn.tedu.tourism.province.pojo.vo.ProvinceVO;
import cn.tedu.tourism.province.service.ProvinceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class CityServiceImpl implements CityService {
    @Autowired
    private CityMapper cityMapper;
    @Override
    public List<CityVO> select(CityQuery cityQuery) {
        log.debug("省份查询参数为：{}",cityQuery);
        List<CityVO> select = cityMapper.select(cityQuery);
        return select;
    }
}
